package com.xunqi.crm.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "sys_user", resultMap = "user_relation_map")
public class User implements Serializable {

    @TableId(type = IdType.AUTO)
    @TableField("usr_id")
    private Long usrId;  // usr_id
    private String usrName;
    private String usrPassword;
    private Long usrRoleId;
    private Integer usrFlag;
    @TableField(exist = false)
    private Role role;

}
